import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

// 引入小仓库
import home from './Home'
import search from './Search'
import detail from './Detail'
import cart from './Cart'
import user from './User'
import trade from './Trade'

// 对外暴露Store类的一个实例
export default new Vuex.Store({
  modules: {
    home,
    search,
    detail,
    cart,
    user,
    trade
  }
})
